home *** CD-ROM | disk | FTP | other *** search
- Path: news.ov.com!news
- From: glenn@ov.com (Fletcher.Glenn@ov.com)
- Newsgroups: comp.lang.c
- Subject: Re: Command line arguments
- Date: 8 Mar 1996 21:21:42 GMT
- Organization: OpenVision
- Message-ID: <4hq8d6$1k1@spanky.pls.ov.com>
- References: <4hjmpi$cuc_003@res-hall.nwu.edu>
- Reply-To: glenn@ov.com
- NNTP-Posting-Host: foghorn.pls.ov.com
-
- In article 003@res-hall.nwu.edu, sen@nwu.edu (Subhro K. Sen) writes:
- >I want to pass a filename to a C program for reading (and or writing).
- >How do I grab this command line argument from within the program?
- >
- >Thanks!
- >
- >
- >--
- >sen@nwu.edu s u b h r o s e n
- >http://www.eecs.nwu.edu/~sksen/ northwestern university
- >PGP key: finger sksen@merle.acns.nwu.edu 2245 sheridan road, #409
- >phone: (847)332-5252 evanston, illinois 60201
-
-
-
- In your C language textbook, look up argc and argv, the main routine
- default arguments.
-
- Fletcher.Glenn@ov.com
-
-